package com.shine.icis.dto;

import java.text.DecimalFormat;
import java.util.List;

public class DataCheckR08Detail {
	private DecimalFormat doubleFormat = new DecimalFormat("0.00");
	
	private List<TXNDeliverJour> txnDeliverJours;
	private List<TXNFundInterestJour> txnFundInterestJours;
	private List<TXNFundTransferJour> txnFundTransferJours;
	
	public List<TXNDeliverJour> getTxnDeliverJours() {
		return txnDeliverJours;
	}

	public void setTxnDeliverJours(List<TXNDeliverJour> txnDeliverJours) {
		this.txnDeliverJours = txnDeliverJours;
	}

	public List<TXNFundInterestJour> getTxnFundInterestJours() {
		return txnFundInterestJours;
	}

	public void setTxnFundInterestJours(
			List<TXNFundInterestJour> txnFundInterestJours) {
		this.txnFundInterestJours = txnFundInterestJours;
	}

	public List<TXNFundTransferJour> getTxnFundTransferJours() {
		return txnFundTransferJours;
	}

	public void setTxnFundTransferJours(
			List<TXNFundTransferJour> txnFundTransferJours) {
		this.txnFundTransferJours = txnFundTransferJours;
	}
	
	/**
	 * 证券交割流水（客户资金结算明细）
	 * @author zsy
	 *
	 */
	public class TXNDeliverJour {
		private String serialNo;//证券端流水号
		private int settleDate;//到账日期
		private double clearAmt;//清算金额
		public String getSerialNo() {
			return serialNo;
		}
		public void setSerialNo(String serialNo) {
			this.serialNo = serialNo;
		}
		public int getSettleDate() {
			return settleDate;
		}
		public void setSettleDate(int settleDate) {
			this.settleDate = settleDate;
		}
		public String getSettleDateText() {
			StringBuffer date = new StringBuffer(Integer.toString(settleDate));
			date.insert(6, "-").insert(4, "-");
			return date.toString();
		}
		public double getClearAmt() {
			return clearAmt;
		}
		public void setClearAmt(double clearAmt) {
			this.clearAmt = clearAmt;
		}
		public String getClearAmtText() {
			return doubleFormat.format(clearAmt);
		}
	}
	
	/**
	 * 资金结息流水表（客户结息金额明细）
	 * @author zsy
	 *
	 */
	public class TXNFundInterestJour {
		private String serialNo;//证券端流水号
		private double interestAmt;//利息
		private double interestTaxAmt;//利息税
		private double discAmt;//差额=利息-利息税
		public String getSerialNo() {
			return serialNo;
		}
		public void setSerialNo(String serialNo) {
			this.serialNo = serialNo;
		}
		public double getInterestAmt() {
			return interestAmt;
		}
		public void setInterestAmt(double interestAmt) {
			this.interestAmt = interestAmt;
		}
		public String getInterestAmtText() {
			return doubleFormat.format(interestAmt);
		}
		public double getInterestTaxAmt() {
			return interestTaxAmt;
		}
		public void setInterestTaxAmt(double interestTaxAmt) {
			this.interestTaxAmt = interestTaxAmt;
		}
		public String getInterestTaxAmtText() {
			return doubleFormat.format(interestTaxAmt);
		}
		public double getDiscAmt() {
			return discAmt;
		}
		public void setDiscAmt(double discAmt) {
			this.discAmt = discAmt;
		}
		public String getDiscAmtText() {
			return doubleFormat.format(discAmt);
		}
	}
	
	/**
	 * 资金转账流水表（客户资金存取明细）
	 * @author zsy
	 *
	 */
	public class TXNFundTransferJour {
		private String serialNo;//证券端流水号
		private int tradeDate;//交易日期
		private double occurAmt;//发生金额
		public String getSerialNo() {
			return serialNo;
		}
		public void setSerialNo(String serialNo) {
			this.serialNo = serialNo;
		}
		public int getTradeDate() {
			return tradeDate;
		}
		public void setTradeDate(int tradeDate) {
			this.tradeDate = tradeDate;
		}
		public String getTradeDateText() {
			StringBuffer date = new StringBuffer(Integer.toString(tradeDate));
			date.insert(6, "-").insert(4, "-");
			return date.toString();
		}
		public double getOccurAmt() {
			return occurAmt;
		}
		public void setOccurAmt(double occurAmt) {
			this.occurAmt = occurAmt;
		}
		public String getOccurAmtText() {
			return doubleFormat.format(occurAmt);
		}
	}

}
